package albino.controllers;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;


@Controller
public class HomeController extends AbstractController {
    @RequestMapping(value="/index",method = RequestMethod.GET)
    public String setupForm(@RequestParam(value="petId", required=false) Integer petId, ModelMap model) {
    	System.out.println(petId);
        model.addAttribute("pet", "asd");
        return "home/index";
    }
}
